import Mock from 'mockjs';

export default {
  'POST /api/admin/account/login': {
    success: true,
    data: {
      access_token: 'token',
      expire_in: 7200,
    },
  },
  'GET /api/admin/account/current': Mock.mock({
    success: true,
    data: {
      info: {
        id: 1,
        nickname: '@cword(3, 6)',
        avatar: '@image',
      },
      permissions: [],
    },
  }),
  'POST /api/admin/account/refresh_token': {
    success: true,
    data: {
      access_token: 'token',
      expire_in: 7200,
    },
  },
};
